using System;
using System.Xml;

namespace umlungu.engineX.webX.thoughts.Admin.service {
	/// <summary>
	/// umlungu engineX web framework, handlerX class.
	/// </summary>
	public class Users : SoapX
	{
		/// <summary>Constructor</summary>
		public Users() : base("service", "Users") {
		}
		/// <summary>
		/// Method _Process:: calls delegate(s)
		/// </summary>
		protected override void _Process(XmlDocument xmldom, profileX profile, contentX content) {
			_Debug("Users._Process(", Process, ") profile:", profile.Xml.InnerXml);
			_Debug("Users._Process(", Process, ") content:", content.Xml.InnerXml);
			switch (Process) {
				case "List":			ProcessResult(new ProcessServiceResult(Handlers.processUserList));			break;
				case "Get":				ProcessResult(new ProcessServiceResult(Handlers.processUserGet));			break;
				case "Add":				ProcessResult(new ProcessServiceResult(Handlers.processUserAdd));			break;
				case "Edit":			ProcessResult(new ProcessServiceResult(Handlers.processUserEdit));			break;
				case "Delete":			ProcessResult(new ProcessServiceResult(Handlers.processUserDelete));		break;
				case "GetAdd":			ProcessResult(new ProcessServiceResult(Handlers.processUserGetAdd));		break;
				case "GetEdit":			ProcessResult(new ProcessServiceResult(Handlers.processUserGetEdit));		break;
				case "GetDel":			ProcessResult(new ProcessServiceResult(Handlers.processUserGetDel));		break;
				case "GetBlog":			ProcessResult(new ProcessServiceResult(Handlers.processUserGetBlog));		break;
				case "AddBlog":			ProcessResult(new ProcessServiceResult(Handlers.processUserAddBlog));		break;
				case "ChangeLogin":		ProcessResult(new ProcessServiceResult(Handlers.processUserChangeLogin));	break;
				case "GetSpacesID":		ProcessResult(new ProcessServiceResult(Handlers.processUserGetSpacesID));	break;
				case "GetSpaces":		ProcessResult(new ProcessServiceResult(Handlers.processUserGetSpaces));		break;
				case "GetAddSpace":		ProcessResult(new ProcessServiceResult(Handlers.processUserGetAddSpace));	break;
				case "AddSpace":		ProcessResult(new ProcessServiceResult(Handlers.processUserAddSpace));		break;
				case "DeleteSpace":		ProcessResult(new ProcessServiceResult(Handlers.processUserDeleteSpace));	break;
				case "DefaultSpace":	ProcessResult(new ProcessServiceResult(Handlers.processUserDefaultSpace));	break;
			}
			_Debug("Users._Process(", Process, ") profile:", profile.Xmldoc.OuterXml);
		}
	}
}
		
